package com.ws.universal.tools.wsui.headle;

import android.content.res.ColorStateList;
import android.view.View;

import org.jetbrains.annotations.NotNull;

public class QMUISkinRuleTextColorHandler extends QMUISkinRuleColorStateListHandler {
    @Override
    protected void handle(@NotNull View view, @NotNull String name, ColorStateList colorStateList) {
        if (colorStateList == null) {
            return;
        }
//        if (view instanceof TextView) {
//            ((TextView) view).setTextColor(colorStateList);
//        } else if (view instanceof QMUIQQFaceView) {
//            ((QMUIQQFaceView) view).setTextColor(colorStateList.getDefaultColor());
//        }else if(view instanceof QMUIProgressBar){
//            ((QMUIProgressBar) view).setTextColor(colorStateList.getDefaultColor());
//        }else{
//            QMUISkinHelper.warnRuleNotSupport(view, name);
//        }
    }
}
